export default defineNuxtPlugin((nuxtApp) => {
  // 监听App的生命周期
  // 1. server and client
  nuxtApp.hook("app:created", (vueApp) => {
    console.log("app created");
  });
  // 2. client
  nuxtApp.hook("app:beforeMount", (vueApp) => {
    console.log("app beforeMount");
  });
  // 3. server and client
  nuxtApp.hook("vue:setup", () => {
    console.log("vue setup");
  });
  // 4. server
  nuxtApp.hook("app:rendered", (renderContext) => {
    console.log("app rendered");
  });
  // 5. client
  nuxtApp.hook("app:mounted", (vueApp) => {
    console.log("app mounted");
  });
});
